#include "hdu.h"

const char* Hdu::oj_name = "hdu";

const char* Hdu::url_home = "http://acm.hdu.edu.cn";
const char* Hdu::url_login = "http://acm.hdu.edu.cn/userloginex.php?action=login";
const char* Hdu::url_submit = "http://acm.hdu.edu.cn/submit.php?action=submit";

const int Hdu::n_language = 7;
const char Hdu::hdu_language[][10] = {"G++", "GCC", "C++", "C", "Pascal", "Java", "C#"};


bool Hdu::check_language(const char *str) {
	char item[20];
	for (int i = 0; i < n_language; i++) {
		strcpy(item, hdu_language[i]);
		if (!strcmp(str, strlower(item))) 
			return true;
	}
	return false;
}
